cmake_minimum_required(VERSION 3.5)

set(PROJECT_DIR ".")
set(PROJECT_NAME portsmf)
project(${PROJECT_NAME} LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# include files
FILE(GLOB SRC_FILES ${PROJECT_DIR}/*.cpp)
FILE(GLOB HEAD_FILES ${PROJECT_DIR}/*.h)

add_library(${PROJECT_NAME} STATIC ${SRC_FILES} ${HEAD_FILES})
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR})
